<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户更新</title>
<s:include value="/app_common/common.jsp"></s:include>
<s:include value="/app_common/uploadify.jsp"></s:include>
<%--是否是新增 --%>
</head>
<body>
	<div class="box2" panelWidth="900" panelTitle="研究报告查看">
		<s:if test="!(yjbg.y_code==null||yjbg.y_code=='')">
			<%--所属人编码 --%>
			<s:hidden name="yjbg.y_submit_ucode" id="y_submit_ucode"></s:hidden>
			<%--所属人名称 --%>
			<s:hidden name="yjbg.y_submit_uname" id="y_submit_uname"></s:hidden>
			<%--所属分部--%>
			<s:hidden name="yjbg.y_submit_dpcode" id="y_submit_dpcode"></s:hidden>
			<%--所属分部名称--%>
			<s:hidden name="yjbg.y_submit_dpname" id="y_submit_dpname"></s:hidden>
		</s:if>
		<s:else>
			<%--所属人编码 --%>
			<s:hidden name="yjbg.y_submit_ucode" id="y_submit_ucode" value="%{#session.u_code}"></s:hidden>
			<%--所属人名称 --%>
			<s:hidden name="yjbg.y_submit_uname" id="y_submit_uname" value="%{#session.u_name}"></s:hidden>
			<%--所属分部--%>
			<s:hidden name="yjbg.y_submit_dpcode" id="y_submit_dpcode" value="%{#session.userltdcode}"></s:hidden>
			<%--所属分部名称--%>
			<s:hidden name="yjbg.y_submit_dpname" id="y_submit_dpname" value="%{#session.userltdname}"></s:hidden>
		</s:else>
			<s:hidden name="yjbg.y_id" id="y_id"></s:hidden>
			<table class="tableStyle" style="line-height: 30px" formMode="transparent">
				<tr>
					<td>报告编号:</td>
					<td style="color: red;"><s:property value="yjbg.y_code"/></td>
					<td>报告名称：</td>
					<td><s:property value="yjbg.y_name" /></td>
					<td>报告类别：</td>
					<td>
						<select name="yjbg.y_type" selectedValue="<s:property value='yjbg.y_type'/>" prompt="请选择" data='<s:property value="map.sel_12"/>'></select>
					</td>
					<td>重要程度：</td>
					<td>
						<select name="yjbg.y_zychengdu" selectedValue="<s:property value='yjbg.y_zychengdu'/>" prompt="请选择" data='<s:property value="map.sel_13"/>'></select>
					</td>
				</tr>
				<tr>
					<td>关键词:</td>
					<td colspan="7"><s:property value="yjbg.y_guanjianci"/></td>
				</tr>
				<tr>
					<td>报告摘要:</td>
					<td colspan="7"><s:property value="yjbg.y_zhaiyao"/></td>
				</tr>
				<tr>
					<td style="padding: 0 8px;">附件上传：</td>
					<td align="left" style="padding: 2px 6px;" colspan="7">
						<div id="full"></div>
						<div id="allShow"></div>
						<div id="show"></div>
						<br />
					</td>
				</tr>
				<tr>
					<td>提交时间:<s:property value=""/></td>
					<td>
						<s:property value="%{yjbg.y_code==null||yjbg.y_code==''?'自动生成':yjbg.y_submit_date}"/>
					</td>
					<td>提交人编码</td>
					<td>
						<s:property value="%{yjbg.y_code==null||yjbg.y_code==''?#session.u_code:yjbg.y_submit_ucode}"/>
					</td>
					<td>提交人名称</td>
					<td>
						<s:property value="%{yjbg.y_code==null||yjbg.y_code==''?#session.u_name:yjbg.y_submit_uname}"/>
					</td>
					<td>所属分部</td>
					<td>
						<s:property value="%{yjbg.y_code==null||yjbg.y_code==''?#session.userltdname:yjbg.y_submit_dpname}"/>
					</td>
				</tr>
				<tr>
					<td colspan="8">
					<input type="button" onclick="back()" value="返回" />
					</td>
				</tr>
			</table>
	</div>
</body>
<script type="text/javascript">
var status = "<s:property value='yjbg.y_id' />";
function back(){
		showProgressBar();
		window.location = webctx+"/yjbg/yjbg_queryYjbg.action";
}
$(function(){
	if(status!=0)selectFiles(status,"TB_YJBG",true);
	var selval = "";
	$('select').each(function(){
		selval=$(this).children('option[selected="selected"]').text();
		$(this).parent('td').empty().append(selval);
	});
	
});
</script>
</html>